import { Module } from '@nestjs/common';
import { ApiService } from './api.service';
import { ApiController } from './api.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Api } from '@/modules/system/api/entities/api.entity';
import { Menu } from '@/modules/system/menu/entities/menu.entity';
import { MenuModule } from '@/modules/system/menu/menu.module';

@Module({
    imports: [TypeOrmModule.forFeature([Api]),
        MenuModule,
    ],
    controllers: [ApiController],
    providers: [ApiService],
    exports: [ApiService, TypeOrmModule],
})
export class ApiModule {
}
